package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author ajmd
 * @since 2023/5/4 13:34
 */
@TableName("e_person_exam")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class PersonExamPO implements Serializable {
    //唯一标识
    private String id;
    //考生账号
    private String studentId;
    //考试id
    private String examId;
    //考生考试状态
    private Integer status;//0未考，1考试中，2已考，3未通过，4已通过
    //考生总得分
    private BigDecimal score;
    //进入考试时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp enterTime;
    //提交答案时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp submitTime;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;
}
